package com.oJudge.judge.strategy;

import com.oJudge.model.dto.question.JudgeCase;
import com.oJudge.judge.codeSandbox.modal.JudgeInfo;
import com.oJudge.model.entity.Question;
import com.oJudge.model.entity.QuestionSubmit;
import lombok.Builder;
import lombok.Data;

import java.util.List;

/**
 * 策略上下文,策略中传递的参数
 */
@Data
@Builder
public class JudgeContext {
    /**
     * 代码沙箱中运行的结果信息
     */
    private JudgeInfo judgeInfo;

    /**
     * 输入输出列表
     */
    private List<String> inputList;

    private List<String> outputList;

    /**
     * 测试用例列表
     */
    private List<JudgeCase> judgeCaseList;

    /**
     * 题目
     */
    private Question question;

    /**
     * 提交记录
     */
    private QuestionSubmit questionSubmit;
}
